package com.ourteam.product.requirement.api;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/api/PRODUCT/REQ/productRequirementTree")
public class ProductRequirementTreeBuilderAPI
		extends AbstractProductDefineItemTreeBuilderAPI<ProductRequirementTreeBuilder> {
	

	@Override
	protected ProductRequirementTreeBuilder getTreeBuilder(HttpServletRequest request) throws Exception {
		return new ProductRequirementTreeBuilder((long) request.getAttribute("productDefineId"),
				(long) request.getAttribute("productVersionId"));
	}

	@Override
	protected Object getInitParameter(HttpServletRequest request) {
		return null;
	}

}
